package cn.tedu.mybatisdb2.mapper;

import cn.tedu.mybatisdb2.pojo.entity.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PMapper {

    @Insert("INSERT INTO product(id,title,price,stock) VALUES (#{id},#{title},#{price},#{stock})")
    int insertProduct2(Product product);

    void insertProduct(Product product);
}
